<template>
    <work-task-list :task-list="taskList" title="工作任务"></work-task-list>
</template>

<script>
import WorkTaskList from '@/views/myWork/components/workTaskList'

export default {
    name: 'Task',
    components: {WorkTaskList},
    data() {
        return {
            taskList: []
        }
    },
    created() {
        const dataSource = []
        for (let i = 0; i < 11; i++) {
            dataSource.push({
                title: '物理 2019级3班',
                group: 'A01',
                groupLeader: '王虎',
                groupMember: ['1', '2', '3', '4'],
                endTime: '2021年12月1日',
                id: i + 1
            })
        }
        this.taskList = dataSource
    }
}
</script>

